#define __ChuShuiDuanDian_c

#include "includeAll.h"

void CSDDFunction()
{
   

	
	
    if((checkTime>0)&&(bDuanDian==0))
    {
        checkTime--;
        if(checkTime==0)
        {
            checkNum=0;
        }
    }
    if(lastCSDD!=P_CSDD)
    {
        if(bDuanDian==0)
        {
            if(checkTime==0)
            {
                checkTime=75;
            }
            checkNum++;
            if(checkNum>18)
            {
                checkNum=0;
                checkTime=0;
                bDuanDian=1;
            }
        }
    }
	 if(bDuanDian)
    {
        checkTime++;
        if(lastCSDD!=P_CSDD)
        {
            checkTime=0;
        }
        if(checkTime>25)
        {
            checkTime=0;
		delaySetPowerH=0;
						timer500msOther=0;
            bDuanDian=0;
            bShouDongBeng=0;
        }
    }
	
	
	
	
    lastCSDD=P_CSDD;
}



